Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

219
Vistas
Why I have "ArrayBuffer is not a constructor" error?

I'm writing an extension to the extension "Binary File Viewer" for VS Code. My code is

/**
 * Select the 'aid' extension.
 */
registerFileType((fileExt, filePath, fileData) => {
    return fileExt == 'wav';
});

registerParser(() => {
    const buffer = new ArrayBuffer(4);

    let temp = new DataView(buffer);
    temp.setInt32(0, 123)
    let I = String(temp.getFloat32());
    addRow('I', I, '');
});

When I run it (actually, when it's involved by the Binary File Viewer), I have an error "Type error: ArrayBuffer is not a constructor". What I've done wrong?

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda